import Vue from 'vue'

Vue.directive('to', {
  bind(el, binding) {
    el.addEventListener('click', () => {
      router.push(binding.value)
    })
  }
})